From: Jasper St. Pierre Date: Tue, 25 Oct 2011 00:06:39 +0000 (-0400) Subject: messageTray: Fix scroll bugginess in summary items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6620 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=01f9d551f135379262ad55ad1e42f11da343db29;p=gnome-shell.git messageTray: Fix scroll bugginess in summary items Two nested scroll views were fighing with each other. The reason isn't particularly important and has to do with some silliness involving StAdjustment. The visible effect was that scrolling up and down when in a summary item view would appear to be glitchy, and sometimes not work at all. To fix, make sure that the scroll view we don't care about is disabled when in a summary mode. https://bugzilla.gnome.org/show_bug.cgi?id=661615 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 19b3baf9a..7358b289d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -586,8 +586,10 @@ const Notification = new Lang.Class({ enableScrolling: function(enableScrolling) { this._scrollPolicy = enableScrolling ? Gtk.PolicyType.AUTOMATIC : Gtk.PolicyType.NEVER; - if (this._scrollArea) + if (this._scrollArea) { this._scrollArea.vscrollbar_policy = this._scrollPolicy; + this._scrollArea.enable_mouse_scrolling = enableScrolling; + } }, _createScrollArea: function() {